let platformList=[
    'qdjsxy',//青岛技师学院
]
let path
if(process.env.NODE_ENV === 'development'){
    //本地测试环境下的接口路径
    path = process.env.VUE_APP_BASE_API.slice(process.env.VUE_APP_BASE_API.indexOf('://')+3, process.env.VUE_APP_BASE_API.indexOf('.taijieyun'))
}else{
    //线上接口路径
    path = window.location.href.slice(window.location.href.indexOf('://')+3, window.location.href.indexOf('.taijieyun'))
}
function platform(a){
    if(platformList.indexOf(a)!=-1){
        return '/'+a
    }else{
        return '/site'
    }
}
export default {
    install (Vue) {
        Vue.prototype.$platformList = platform(path);
    }
}

